<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">ZS</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">孝感幼儿园招生系统</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Sidebar toggle button-->
		 
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img src="__ROOT__/Public/adminlte/dist/img/user1-128x128.jpg" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs">{$Think.cookie.name }</span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img src="__ROOT__/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">

                <p>
                  {$Think.cookie.name }——{$Think.cookie.userid }
                  <small>上次登录时间：{$Think.cookie.logindate }</small>
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="__CONTROLLER__/profile" class="btn btn-default btn-flat">个人信息</a>
                </div>
                <div class="pull-right">
                  <a href="__MODULE__/login/logout" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="__ROOT__/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>{$Think.cookie.name }</p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>

      <!-- search form (Optional) -->
      <form action="__CONTROLLER__/viewstu" method="post" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="sname" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" id="side-menu">
        <li class="header">菜单栏</li>
        <!-- Optionally, you can add icons to the links -->
        <li class="{:[siderid]==1?'active':'1';}"><a href="__CONTROLLER__/index/"><i class="fa fa-dashboard"></i> <span>主页</span></a></li>

      

        <li class="treeview {:[siderid]==2?'active':''}">
          <a href=""><i class="fa fa-user"></i> <span>学生管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="__CONTROLLER__/addstu"><i class="fa fa-circle-o"></i> 添加学生</a></li>
            <li><a href="__CONTROLLER__/stulist"><i class="fa fa-circle-o"></i> 学生列表</a></li>
			<li><a href="__CONTROLLER__/searchstu"><i class="fa fa-circle-o"></i> 查找学生</a></li>
          </ul>
		</li>

<!--管理员-->	
<if condition="$Think.session.sfid eq 1">
<li class="treeview {:[siderid]==3?'active':'1'}">
          <a href=""><i class="fa fa-user-secret"></i> <span>老师管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="__CONTROLLER__/addth"><i class="fa fa-circle-o"></i> 添加老师</a></li>
            <li><a href="__CONTROLLER__/thlist"><i class="fa fa-circle-o"></i> 老师列表</a></li>
          </ul>
        </li>
</if>

<!--老师-->
<if condition="$Think.session.sfid eq 2">
<li class="treeview {:[siderid]==3?'active':'1'}">
          <a href=""><i class="fa fa-user-secret"></i> <span>老师信息</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="__CONTROLLER__/profile"><i class="fa fa-circle-o"></i> 个人信息</a></li>
            <li><a href="__CONTROLLER__/editpw"><i class="fa fa-circle-o"></i> 修改信息</a></li>
          </ul>
        </li>
</if>




      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>